package com.cras.webcam.http;

import java.nio.ByteBuffer;

/**
 * Created by Administrator on 2017/6/24 0024.
 */

public class HttpResponse extends HttpMessage{
    private HttpResponseStatus status;

    public HttpResponse(HttpVersion version, ByteBuffer content) {
        super(version, content);
    }
    public HttpResponseStatus status() {
        return status;
    }

    public HttpResponse setStatus(HttpResponseStatus status) {
        if (status == null) {
            throw new NullPointerException("status");
        }
        this.status = status;
        return this;
    }
}
